<script>
	const admin = uniCloud.importObject('admin') //第一步导入云对象
	export default {
		onLaunch: function() {
			if(!localStorage.getItem('is_login')){
				uni.redirectTo({
					url:'/pages/index/login/login'
				})
			}
			if(localStorage.getItem('is_login')){
				let name = localStorage.getItem('name');
				admin.find({'name':name}).then(res=>{
					if(!res){
						uni.redirectTo({
							url:'/pages/index/login/login'
						})	
					}
				})
			}
		},
		onShow: function() {
			
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "static/font.css";
	.uy, .uy *{
		font-family: 'ALKATIP Basma Tom';
	}
	/*每个页面公共css */
	.rtl{
		direction: rtl;
	}
	.ltr{
		direction: ltr;
	}
	.rtl_input .el-input-group--prepend .el-input__inner{
		direction: rtl!important;
	}
	.al-left{
		text-align: left!important;
	}
	.al-right, .al-right *{
		text-align: right!important;
	}
	.al-center{
		text-align: center!important;
	}
	body, html {
	    -webkit-user-select:auto!important;
	    user-select: auto!important;
	    width: 100%;
	    height: 100%;
	}
	.el-table .cell{
		word-break: normal!important;
		line-height: unset!important;
	}
	.result_res .el-textarea__inner{
		word-break: normal!important;
		line-height: unset!important;
	}
	.el-form-item__label{
		color: #fff!important;
	}
	.zd_textarea{
		    display: block;
		    resize: vertical;
		    padding: 5px 15px;
		    line-height: 1.5;
		    box-sizing: border-box;
		    width: 100%;
		    font-size: inherit;
		    color: #606266;
		    background-color: #FFF;
		    background-image: none;
		    border: 1px solid #DCDFE6;
		    border-radius: 4px;
		    -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
		    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
	}
</style>
